//
//  ConfigViewController+ConfigViewController.m
//  NiuNiuPacking
//
//  Created by shaoting on 14-9-3.
//  Copyright (c) 2014年 Reseek. All rights reserved.
//

#import "ConfigViewController.h"
#import "Toast+UIView.h"

@interface ConfigViewController()

@property (retain, nonatomic) IBOutlet UITableViewCell *tbl;

@end

@implementation ConfigViewController
- (IBAction)showMenu
{
    [self.frostedViewController presentMenuViewController];
}
- (void)dealloc {
    [_tbl release];
    [super dealloc];
}
- (IBAction)btnExit:(id)sender {
    UIAlertView *alert=[[UIAlertView alloc]
                        initWithTitle:@" "
                        message:@"您确定要注销并退出吗？"
                        delegate:self
                        cancelButtonTitle:@"取消"
                        otherButtonTitles: @"确定", nil];
    //if更新失败
    //alert.message=@"更新失败，请稍后再试。";
    [alert show];
    
   // exit(0);
}
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
    NSLog(@"clickButtonAtIndex:%d",buttonIndex);
    if (buttonIndex == 1)
    {
        self.userBl = [[UserBl alloc] init];
        [self.userBl removeAll];
        exit(0);
    }


}


@end
